import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:payment/page/HomePage.dart';

void main() {
  runApp(Payment());
}

class Payment extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '银行支出明细',
      builder: (BuildContext context, Widget? child){
        return MediaQuery(data: MediaQuery.of(context).copyWith(alwaysUse24HourFormat: true),
            child: child!);
      },
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      supportedLocales: [
        const Locale('zh', 'CH'),
        const Locale('en', 'US'),
      ],
      locale: const Locale("zh"),
      theme:  new ThemeData(
        brightness: Brightness.light,
        primaryColor: Colors.white,
          appBarTheme: AppBarTheme(
            color: Colors.white,
          )
      ),
      home: HomePage(),
    );
  }
}

